package com.kingdee.eas.custom.rcbudget.ekingwin.www.esb.QMYX_SUNAC_363_easBrokerageBillApprove;

import java.io.Serializable;
import javax.xml.namespace.QName;
import org.apache.axis.description.ElementDesc;
import org.apache.axis.description.TypeDesc;
import org.apache.axis.encoding.Deserializer;
import org.apache.axis.encoding.Serializer;
import org.apache.axis.encoding.ser.BeanDeserializer;
import org.apache.axis.encoding.ser.BeanSerializer;

public class HEADER
  implements Serializable
{
  private String BIZTRANSACTIONID;
  private String RESULT;
  private String ERRORCODE;
  private String ERRORINFO;
  private String COMMENTS;
  private String SUCCESSCOUNT;
  private Object __equalsCalc = null;

  private boolean __hashCodeCalc = false;

  private static TypeDesc typeDesc = new TypeDesc(HEADER.class, true);

  static {
    typeDesc.setXmlType(new QName("http://www.ekingwin.com/esb/QMYX_SUNAC_363_easBrokerageBillApprove", "HEADER"));
    ElementDesc elemField = new ElementDesc();
    elemField.setFieldName("BIZTRANSACTIONID");
    elemField.setXmlName(new QName("http://www.ekingwin.com/esb/QMYX_SUNAC_363_easBrokerageBillApprove", "BIZTRANSACTIONID"));
    elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    elemField.setNillable(false);
    typeDesc.addFieldDesc(elemField);
    elemField = new ElementDesc();
    elemField.setFieldName("RESULT");
    elemField.setXmlName(new QName("http://www.ekingwin.com/esb/QMYX_SUNAC_363_easBrokerageBillApprove", "RESULT"));
    elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    elemField.setNillable(false);
    typeDesc.addFieldDesc(elemField);
    elemField = new ElementDesc();
    elemField.setFieldName("ERRORCODE");
    elemField.setXmlName(new QName("http://www.ekingwin.com/esb/QMYX_SUNAC_363_easBrokerageBillApprove", "ERRORCODE"));
    elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    elemField.setNillable(false);
    typeDesc.addFieldDesc(elemField);
    elemField = new ElementDesc();
    elemField.setFieldName("ERRORINFO");
    elemField.setXmlName(new QName("http://www.ekingwin.com/esb/QMYX_SUNAC_363_easBrokerageBillApprove", "ERRORINFO"));
    elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    elemField.setNillable(false);
    typeDesc.addFieldDesc(elemField);
    elemField = new ElementDesc();
    elemField.setFieldName("COMMENTS");
    elemField.setXmlName(new QName("http://www.ekingwin.com/esb/QMYX_SUNAC_363_easBrokerageBillApprove", "COMMENTS"));
    elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    elemField.setNillable(false);
    typeDesc.addFieldDesc(elemField);
    elemField = new ElementDesc();
    elemField.setFieldName("SUCCESSCOUNT");
    elemField.setXmlName(new QName("http://www.ekingwin.com/esb/QMYX_SUNAC_363_easBrokerageBillApprove", "SUCCESSCOUNT"));
    elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    elemField.setNillable(false);
    typeDesc.addFieldDesc(elemField);
  }

  public HEADER()
  {
  }

  public HEADER(String BIZTRANSACTIONID, String RESULT, String ERRORCODE, String ERRORINFO, String COMMENTS, String SUCCESSCOUNT)
  {
    this.BIZTRANSACTIONID = BIZTRANSACTIONID;
    this.RESULT = RESULT;
    this.ERRORCODE = ERRORCODE;
    this.ERRORINFO = ERRORINFO;
    this.COMMENTS = COMMENTS;
    this.SUCCESSCOUNT = SUCCESSCOUNT;
  }

  public String getBIZTRANSACTIONID()
  {
    return this.BIZTRANSACTIONID;
  }

  public void setBIZTRANSACTIONID(String BIZTRANSACTIONID)
  {
    this.BIZTRANSACTIONID = BIZTRANSACTIONID;
  }

  public String getRESULT()
  {
    return this.RESULT;
  }

  public void setRESULT(String RESULT)
  {
    this.RESULT = RESULT;
  }

  public String getERRORCODE()
  {
    return this.ERRORCODE;
  }

  public void setERRORCODE(String ERRORCODE)
  {
    this.ERRORCODE = ERRORCODE;
  }

  public String getERRORINFO()
  {
    return this.ERRORINFO;
  }

  public void setERRORINFO(String ERRORINFO)
  {
    this.ERRORINFO = ERRORINFO;
  }

  public String getCOMMENTS()
  {
    return this.COMMENTS;
  }

  public void setCOMMENTS(String COMMENTS)
  {
    this.COMMENTS = COMMENTS;
  }

  public String getSUCCESSCOUNT()
  {
    return this.SUCCESSCOUNT;
  }

  public void setSUCCESSCOUNT(String SUCCESSCOUNT)
  {
    this.SUCCESSCOUNT = SUCCESSCOUNT;
  }

  public synchronized boolean equals(Object obj)
  {
    if (!(obj instanceof HEADER)) return false;
    HEADER other = (HEADER)obj;
    if (obj == null) return false;
    if (this == obj) return true;
    if (this.__equalsCalc != null) {
      return this.__equalsCalc == obj;
    }
    this.__equalsCalc = obj;

    boolean _equals = 
      ((this.BIZTRANSACTIONID == null) && (other.getBIZTRANSACTIONID() == null)) || (
      (this.BIZTRANSACTIONID != null) && 
      (this.BIZTRANSACTIONID.equals(other.getBIZTRANSACTIONID())) && (
      ((this.RESULT == null) && (other.getRESULT() == null)) || (
      (this.RESULT != null) && 
      (this.RESULT.equals(other.getRESULT())) && (
      ((this.ERRORCODE == null) && (other.getERRORCODE() == null)) || (
      (this.ERRORCODE != null) && 
      (this.ERRORCODE.equals(other.getERRORCODE())) && (
      ((this.ERRORINFO == null) && (other.getERRORINFO() == null)) || (
      (this.ERRORINFO != null) && 
      (this.ERRORINFO.equals(other.getERRORINFO())) && (
      ((this.COMMENTS == null) && (other.getCOMMENTS() == null)) || (
      (this.COMMENTS != null) && 
      (this.COMMENTS.equals(other.getCOMMENTS())) && (
      ((this.SUCCESSCOUNT == null) && (other.getSUCCESSCOUNT() == null)) || (
      (this.SUCCESSCOUNT != null) && 
      (this.SUCCESSCOUNT.equals(other.getSUCCESSCOUNT())))))))))))));
    this.__equalsCalc = null;
    return _equals;
  }

  public synchronized int hashCode()
  {
    if (this.__hashCodeCalc) {
      return 0;
    }
    this.__hashCodeCalc = true;
    int _hashCode = 1;
    if (getBIZTRANSACTIONID() != null) {
      _hashCode += getBIZTRANSACTIONID().hashCode();
    }
    if (getRESULT() != null) {
      _hashCode += getRESULT().hashCode();
    }
    if (getERRORCODE() != null) {
      _hashCode += getERRORCODE().hashCode();
    }
    if (getERRORINFO() != null) {
      _hashCode += getERRORINFO().hashCode();
    }
    if (getCOMMENTS() != null) {
      _hashCode += getCOMMENTS().hashCode();
    }
    if (getSUCCESSCOUNT() != null) {
      _hashCode += getSUCCESSCOUNT().hashCode();
    }
    this.__hashCodeCalc = false;
    return _hashCode;
  }

  public static TypeDesc getTypeDesc()
  {
    return typeDesc;
  }

  public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
  {
    return 
      new BeanSerializer(
      _javaType, _xmlType, typeDesc);
  }

  public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
  {
    return 
      new BeanDeserializer(
      _javaType, _xmlType, typeDesc);
  }
}